Function Util::median_mat

Function Documentation

double Util::median_mat(cv::Mat &I, int x, int y, int h)

Find the median value of the local window of a point (x,y) lying in the image I.

Parameters
  • Original[in] image.

  • the[in] x direction coordinate (horizontal).

  • the[in] y direction coordinate (vertical).

  • local[in] windows radius (e.g. 2, so window size is 5 (2*2+1) ).